x86/mm: don't reference hvm_funcs directly
authorWei Liu <wei.liu2@citrix.com>
Fri, 17 Aug 2018 15:12:22 +0000 (16:12 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 21 Aug 2018 13:57:31 +0000 (14:57 +0100)
commit502f75514737f598d1b2134091b364f425bee703
tree92d6a17bd64788a7f107a2696e40c7b2e077ad6e
parente4b866d70366a5cb46325a1560850ff25d110964
x86/mm: don't reference hvm_funcs directly

It is generally not a good idea to reference the internal data
structure of the another subsystem directly. Introduce a wrapper
function for the invlpg hook.

No functional change.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c
xen/include/asm-x86/hvm/hvm.h